<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var info = {
        name: "可可",
        type: "阿拉斯加",
        age: "5岁",
        color: "棕红色",
        ability: "汪汪叫、摇尾巴",
        dog: function () {
          return `名称：${this.name},类型(type):${this.type},年龄:${this.age},颜色：${this.color},技能：${this.ability} `;
        },
      };
      document.write(info["dog"]());
    </script>
  </body>
</html>
